package com.cug.zfanspring.service;

import com.cug.zfanspring.bean.Device;
import com.cug.zfanspring.bean.Factor;
import com.cug.zfanspring.mapper.FactorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class FactorDataService {
    @Autowired
    FactorMapper factorMapper;
    public List<Factor> getAlarmFactorData(){
        return factorMapper.getAlarmFactorData();
    }
    public List<Factor> getLatestAlarmFactorData(){
        return factorMapper.getLatestAlarmFactorData();
    }
    public void updateFactorData(List<Factor> factorData){
        factorMapper.updateFactorData(factorData);
    }
    public void updateLatestFactorData(List<Factor> factorData){
        factorMapper.updateLatestFactorData(factorData);
    }


}
